package com.zlz.server.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author: zlz
 * @date: 2021/3/21 13:10
 * @description:
 * @since: JDK1.8
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChatMsg {
    /**
     * 消息来源方
     */
    private String from;

    /**
     * 消息发送方
     */
    private String to;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 消息发送时间
     */
    private LocalDateTime date;

    /**
     * 消息来源方的昵称
     */
    private String fromNickName;
}
